this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};this.BX.UI.Icons=this.BX.UI.Icons||{};(function(e,i){"use strict";var l=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(l,"ARCHIVE","archive");babelHelpers.defineProperty(l,"MEDIA","media");babelHelpers.defineProperty(l,"PICTURE","picture");babelHelpers.defineProperty(l,"NONE","none");function t(e,i){s(e,i);i.add(e)}function s(e,i){if(i.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function n(e,i,l){if(!i.has(e)){throw new TypeError("attempted to get private field on non-instance")}return l}var r={RAR:{color:"#7eab34",fileType:"archive"},ZIP:{color:"#ac5fbd",fileType:"archive"},GZIP:{color:"#8F44A0",fileType:"archive"},GZ:{color:"#BA7ED5",fileType:"archive"},JPG:{color:"#1D95A5",fileType:"picture"},JPEG:{color:"#1D95A5",fileType:"picture"},WEBP:{color:"#0D7683",fileType:"picture"},GIF:{color:"#2E85D3",fileType:"picture"},PNG:{color:"#1CC09D",fileType:"picture"},MOV:{color:"#CB8600",fileType:"media"},"3GP":{color:"#ACB75F",fileType:"media"},WEBM:{color:"#ACB75F",fileType:"media"},AVI:{color:"#FF5752",fileType:"media"},MP3:"#0B66C3",WAV:"#1D62AA",PHP:"#746781",PDF:"#d73b41",PSD:"#7e8997",TXT:"#9ba4ae",DOC:"#2c77b1",DOCX:"#2c77b1",PPT:"#e89e00",PPTX:"#e89e00",XLS:"#54b51e",XLSX:"#54b51e",none:"#7e8997"};var a=new WeakSet;var o=function(){function e(l){babelHelpers.classCallCheck(this,e);t(this,a);var s=i.Type.isPlainObject(l)?l:{};this.name=null;this.fileType=null;this.align=i.Type.isStringFilled(s.align)?s.align:"left";this.color=null;this.size=i.Type.isNumber(s.size)?s.size:null;this.setColor(s.color);this.setName(s.name);this.setType(this.fileType)}babelHelpers.createClass(e,[{key:"setColor",value:function e(l){var t=r[this.name];if(t&&this.color===null){this.color=i.Type.isStringFilled(t)?t:t.color}else if(i.Type.isStringFilled(l)){this.color=l}}},{key:"setName",value:function e(l){if(i.Type.isStringFilled(l)&&l.length<6){this.name=l.toUpperCase();this.setColor();this.setType()}else{this.name=null}}},{key:"setType",value:function e(l){var t=r[this.name];if(t&&this.fileType===null){this.fileType=i.Type.isStringFilled(t.fileType)?t.fileType:null}else{this.fileType=l}}},{key:"generate",value:function e(){var i,t="0 0 100 117";if(this.name){if(this.align==="center"){t="-12 0 112 117";i=this.size+this.size*.24}else{i=this.size+this.size*.12}}else{if(this.align==="right"){t="0 0 100 117";i=this.size+this.size*.12}else{t="0 0 90 117";i=this.size}}var s=n(this,a,h).call(this,"svg",{width:i+"px",viewBox:t,style:"display:block",fill:"none"});var r=n(this,a,h).call(this,"path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H63.3929L89.2857 25.8929V116.071H0V0Z",fill:"#e5e8eb"});var o=n(this,a,h).call(this,"path",{"fill-rule":"evenodd","clip-rule":"evenodd",opacity:"0.3",d:"M63.3929 0L89.2857 25.8929H63.3929V0Z",fill:"#535c69"});s.appendChild(r);s.appendChild(o);if(this.fileType===l.ARCHIVE){var p=n(this,a,h).call(this,"path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.3214 0H27.7486V1.96417H22.3214V0ZM22.3214 3.57123H27.7486V5.5354H22.3214V3.57123ZM22.3214 7.14246H27.7486V9.10663H22.3214V7.14246ZM22.3214 10.5351H27.7486V12.4993H22.3214V10.5351ZM22.3214 14.1063H27.7486V16.0705H22.3214V14.1063ZM22.3214 17.6776H27.7486V19.6417H22.3214V17.6776ZM22.3214 21.2488H27.7486V23.213H22.3214V21.2488ZM22.3214 24.82H27.7486V26.7842H22.3214V24.82ZM22.3214 28.3913H27.7486V30.3554H22.3214V28.3913ZM22.3214 31.7839H27.7486V33.7481H22.3214V31.7839ZM22.3214 35.3552H27.7486V37.3193H22.3214V35.3552ZM22.3214 38.9264H27.7486V40.8906H22.3214V38.9264ZM29.4993 1.19209e-07H34.9265V1.96417H29.4993V1.19209e-07ZM29.4993 3.57123H34.9265V5.5354H29.4993V3.57123ZM29.4993 7.14246H34.9265V9.10663H29.4993V7.14246ZM29.4993 10.5351H34.9265V12.4993H29.4993V10.5351ZM29.4993 14.1063H34.9265V16.0705H29.4993V14.1063ZM29.4993 17.6776H34.9265V19.6417H29.4993V17.6776ZM29.4993 21.2488H34.9265V23.213H29.4993V21.2488ZM29.4993 24.82H34.9265V26.7842H29.4993V24.82ZM29.4993 28.3913H34.9265V30.3554H29.4993V28.3913ZM29.4993 31.7839H34.9265V33.7481H29.4993V31.7839ZM29.4993 35.3552H34.9265V37.3193H29.4993V35.3552ZM29.4993 38.9264H34.9265V40.8906H29.4993V38.9264Z",fill:"#b9bec4"});s.appendChild(p)}else if(this.fileType===l.MEDIA){var c=n(this,a,h).call(this,"path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M77.6785 90.873V42.6587H11.6071V90.873H77.6785ZM13.799 85.5088L13.848 85.5087L13.8488 88.6073L23.7776 88.6064L23.7781 88.6579H13.799V85.5088ZM65.4958 88.6064V44.9261L75.4346 44.9263L75.4335 48.0269L67.4498 48.0273V53.0045L75.4335 53.0032V48.0269L75.4826 48.0273V44.8779H65.4974L65.4958 44.9261H23.7776L23.7781 44.8759H13.799V48.0253H13.848V53.0016H21.8248V48.0253H13.848L13.8488 44.9263L23.7776 44.9261V88.6064H65.4958ZM75.4335 85.5053L75.4346 88.6073L65.4958 88.6064L65.4974 88.6541H75.4826V85.5067L75.4335 85.5053ZM75.4335 85.5053V80.5274L67.4498 80.5275V85.5067L75.4335 85.5053ZM13.848 85.5087H21.8248V80.5307H13.848V85.5087ZM53.3524 67.5326L39.5164 56.1499V56.2398L39.4786 56.2087V79.2022L53.4164 67.7065L53.279 67.593L53.3524 67.5326ZM13.848 72.404H21.8248V77.3819H13.848V72.404ZM67.4498 72.403L75.4335 72.4022V77.3803H67.4498V72.403ZM13.848 64.2772H21.8248V69.2551H13.848V64.2772ZM67.4498 64.2765L75.4335 64.2756V69.2551L67.4498 69.2556V64.2765ZM13.848 56.1504H21.8248V61.1283H13.848V56.1504ZM67.4498 56.1519L75.4335 56.1504V61.1283L67.4498 61.1292V56.1519Z",fill:"#b9bec4"});s.appendChild(c)}else if(this.fileType===l.PICTURE){var V=n(this,a,h).call(this,"path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6071 42.8571H75.4348H77.6785V108.929H11.6071V106.687V42.8571ZM13.8491 106.687H75.435V45.1009H13.8491V106.687ZM67.5987 61.1226C67.5987 64.4852 64.8718 67.2112 61.5082 67.2112C58.1443 67.2112 55.4176 64.4852 55.4176 61.1226C55.4176 57.76 58.1443 55.0341 61.5082 55.0341C64.8718 55.0341 67.5987 57.76 67.5987 61.1226ZM17.9371 102.805H71.3468V99.293L57.1052 85.2417L49.9824 92.2684L32.1785 74.7047L17.9371 88.7541V102.805Z",fill:"#b9bec4"});s.appendChild(V)}if(this.name){var H=n(this,a,h).call(this,"svg",{width:"65",height:"33",x:"35",y:"53"});var f=n(this,a,h).call(this,"rect",{width:"100%",height:"33",x:"0",y:"0",fill:this.color?this.color:"#7e8997"});var d=n(this,a,h).call(this,"text",{x:"50%",y:"54%","dominant-baseline":"middle",fill:"#fff","text-anchor":"middle",style:"color:#fff;"+'font-family: "OpenSans-Semibold", "Open Sans", Helvetica, Arial, sans-serif;'+"font-weight: 500;"+"font-size: 23px;"+"line-height: 25px;"},this.name);var u=document.createTextNode(this.name);d.appendChild(u);H.appendChild(f);H.appendChild(d);s.appendChild(H)}return s}},{key:"generateURI",value:function e(){return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this.generate().outerHTML)}},{key:"renderTo",value:function e(l){if(i.Type.isDomNode(l)){return l.appendChild(this.generate())}return null}}]);return e}();function h(e,i){var l;if(e==="svg"){l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("xmlns","http://www.w3.org/2000/svg")}else{l=document.createElementNS("http://www.w3.org/2000/svg",e)}for(var t in i){l.setAttributeNS(null,t,i[t])}return l}e.FileIcon=o;e.FileType=l})(this.BX.UI.Icons.Generator=this.BX.UI.Icons.Generator||{},BX);
//# sourceMappingURL=ui.icons.generator.bundle.map.js